// priority: 0

console.info('Hello, World! (You will see this line every time client resources reload)')

onEvent('jei.hide.items', event => {
	// Hide items in JEI here
	// event.hide('minecraft:cobblestone')
	//Item.of('create:schematic', '{Owner:"publicovo",Anchor:{X:0,Y:0,Z:0},Bounds:{X:9,Y:5,Z:9},Deployed:0b,File:"ast_wxq.nbt",Rotation:"NONE",Mirror:"NONE"}'),
	//event.hide(/draconicevolution:/)
	event.hide(/torcherino:/)
	event.hide(/occultism:/)

})

onEvent('jei.add.items', event => {
	event.add('torcherino:torcherino')
	event.add(Item.of('create:schematic', '{Owner:"publicovo",Anchor:{X:0,Y:0,Z:0},Bounds:{X:9,Y:5,Z:9},Deployed:0b,File:"ast_wxq.nbt",Rotation:"NONE",Mirror:"NONE"}'));
	event.add(Item.of('create:schematic', '{Owner:"fafaava",Anchor:{X:0,Y:0,Z:0},Bounds:{X:16,Y:1,Z:16},Deployed:0b,File:"nr2_base.nbt",Rotation:"NONE",Mirror:"NONE"}'));
});




onEvent('item.tooltip', e => {
	const itemList = [{
		name: 'kubejs:post_radionin_1',
		text: '-100 mSv'
	},
	{
		name: 'kubejs:post_radionin_2',
		text: '-400 mSv'
	},
	{
		name: 'kubejs:post_radionin_3',
		text: '-1000 mSv'
	},
	{
		name: 'kubejs:radionin_1',
		text: '-10 rad'
	},
	{
		name: 'kubejs:radionin_2',
		text: '-40 rad'
	},
	{
		name: 'kubejs:radionin_3',
		text: '-100 rad'
	},
	{
		name: 'create:schematic_table',
		text: 'Disabled'
	},
	{
		name: 'mob_grinding_utils:dreadful_dirt',
		text: ':>'
	},
	{
		name : 'kubejs:softclay_cake_6',
		text : '看起来它烤糊了...'
	}
	]
	const itemNumList = [
		{
			name: 'minecraft:snowball',
			text: ['暴雪人在攻击时会产生雪',
				'Blizzard people produce snow when they attack']
		},
		{
			name: 'forbidden_arcanus:xpetrified_orb',
			text: ['将腐化粉末和暗物质丢到世界上会形成黑洞,黑洞会吸收附近的经验球转化成石化经验球',
				'Throwing putrefying powder and dark matter into the world would create a black hole, which would absorb nearby spheres of experience and turn them into petrified spheres of experience'
			]
		},
		{
			name : 'kubejs:summon_blaze',
			text : ['放入召唤祭坛中召唤','Place in the summoning altar to summon']
		},
		{
			name : 'kubejs:summon_blizz',
			text : ['放入召唤祭坛中召唤','Place in the summoning altar to summon','应该不会有人用这个破基岩吧！不对,根本没有基岩']
		},
		{
			name : 'kubejs:summon_blitz',
			text : ['放入召唤祭坛中召唤','Place in the summoning altar to summon']
		},
		{
			name : 'kubejs:summon_basalz',
			text : ['放入召唤祭坛中召唤','Place in the summoning altar to summon']
		},
		{
			name : 'create:schematic',
			text : ['蓝图桌已被禁用,但是提供了创造板条箱和蓝图大炮的合成,请直接制造蓝图,并使用创造板条箱旁边的蓝图加农炮不消耗任何材料建造','The Blueprint Table has been disabled, but the composition of the creation crate and blueprint cannon is provided, please manufacture the blueprint directly and use the creation crate next to the blueprint cannon to build without consuming any materials']
		},
		{
			name : 'forbidden_arcanus:pixie',
			text : ['右键召唤亚尔夫海姆精灵','Right click and summon the Alfheim elves']
		},
		{
			name : 'botania:life_essence',
			text :['如果你是使用合成表合成,请注意此合成中不会消耗信标','If you are composing using a composition table, note that no beacons are consumed in this composition']
		},
		{
			name: 'bloodmagic:growing_doubt',
			text : ['破坏恶魔意志时会产生的奇异种子',"A strange seed produced when the devil's will is broken."]
		},
		{
			name:  'forbidden_arcanus:runic_tenebris_core',
			text : ['这玩意这么这么贵？或许我可以考虑其他合成方式']
		},
		{
			name : 'kubejs:add_1_1',
			text : ['由绿野仙踪大佬提供的更方便的地基']
		},
		{
			name : 'kubejs:add_1_2',
			text : ['由绿野仙踪大佬提供的更方便的地基']
		},
		{
			name : 'kubejs:add_1_3',
			text : ['由绿野仙踪大佬提供的更方便的地基']
		},
		{
			name : 'minecraft:seagrass',
			text : ['你在水里面用骨粉就能催出来被污染的水草']
		},
		{
			name : 'thermal:machine_efficiency_creative_augment',
			text : ['好吧，这只是个预告配方，我还没想好这么用太空电梯把两条线串起来']
		},
		{
			name : 'mekanismmatter:universal_matter',
			text : ['奇异物质,可以吸收大范围的内的一切污染']
		},
		{
			name : 'forbidden_arcanus:eternal_stella',
			text : ['一阵眩晕过后你发现你从GT的世界里带出了一样物品，定睛一看你手里拿着的是......布莱恩科技航空专用强化胶带FAL48型']
		}
	]
	itemNumList.forEach((i) => {
		e.addAdvanced(i.name, (item, advanced, text) => {
			if (!e.isShift()) {
				for (let j = 0; j < i.text.length; j++) {
					text.add(j + 1, [Text.of(i.text[j]).gold(), Text.of('')]);
				}
			}
		});

	});

	itemList.forEach((i) => {
		e.addAdvanced(i.name, (item, advanced, text) => {
			if (!e.isShift()) {
				text.add(1, [Text.of(i.text).gold(), Text.of('')]);
			}
		});
	});
	for (let i = 1; i < 6; i++) {
		e.addAdvanced(`kubejs:item_${i}`, (item, advanced, text) => {
			if (!e.isShift()) {
				text.add(1, [Text.of("分解之后请使用创造板条箱配合蓝图大炮使用").gold(), Text.of('')]);
				text.add(2, [Text.of("After decomposition please use the creation crate to match the blueprint cannon").gold(), Text.of('')]);
			}
		});
	}
	for (let i = 9; i <= 17; i++) {
		e.addAdvanced(`kubejs:item_${i}`, (item, advanced, text) => {
			if (!e.isShift()) {
				text.add(1, [Text.of("分解之后请使用创造板条箱配合蓝图大炮使用").gold(), Text.of('')]);
				text.add(2, [Text.of("After decomposition please use the creation crate to match the blueprint cannon").gold(), Text.of('')]);
			}
		});
	}
	// e.addAdvanced('kubejs:test_item', (item, advanced, text) => {
	// 	if (!e.isShift()) {
	// 		text.add(1, [Text.of('Hold ').gold(), Text.of('Shift ').yellow(), Text.of('to see more info.').gold()])
	// 	}
	// 	if (e.isShift()) {
	// 		text.add(1, [Text.of('Default: '), Text.of('50 '), Text.of('mB/t')])
	// 		text.add(2, [Text.of('Basic: '), Text.of('100 '), Text.of('mB/t')])
	// 		text.add(3, [Text.of('Improved: ').gold(), Text.of('500 ').yellow(), Text.of('mB/t').gold()])
	// 		text.add(4, [Text.of('Advanced: ').darkAqua(), Text.of('2,000 ').aqua(), Text.of('mB/t').darkAqua()])
	// 		text.add(5, [Text.of('Ultimate: ').darkGray(), Text.of('10,000 ').gray(), Text.of('mB/t').darkGray()])
	// 		text.add(6, [Text.of('Infinity: ').darkPurple(), Text.of('2,147,483,647 ').lightPurple(), Text.of('mB/t').darkPurple()])
	// 	}
	// })
})